package com.course.delegate;

import com.course.exception.ConnectionException;
import com.course.exception.DataNotFoundException;
import com.course.exception.LoginException;
import com.course.serviceI.UserServiceI;
import com.course.serviceImpl.UserServiceImpl;
import com.course.util.CoreList;

public class UserMgrDelegate {

	UserServiceI usi=new UserServiceImpl();
	
	public boolean deleteFaculty(int cid, String login)
	throws LoginException, ConnectionException {
		
		return usi.deleteFaculty(cid, login);
	}
	public boolean deleteStudent(int cid, int uid)
	throws LoginException, ConnectionException {
		return usi.deleteStudent(cid, uid);
	}
	public CoreList getEmpDetails(String path) throws DataNotFoundException,
	ConnectionException {
		return usi.getEmpDetails(path);
	}
	public CoreList getFaculty(String path, int courid)
	throws DataNotFoundException, ConnectionException {
		
		return usi.getFaculty(path, courid);
	}
	public CoreList getStudents(String path) throws DataNotFoundException,
	ConnectionException {
		return usi.getStudents(path);
	}
	public CoreList getStudentsInfo(String path, int courid)
	throws DataNotFoundException, ConnectionException {
		return usi.getStudentsInfo(path, courid);
	}
	
}
